You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offer related entries when you complete something (#103) - #224
Completing an entry now opens an Up Next sheet with its sequels, side stories, spin-offs and alternatives, so the next thing to watch or read is one tap away.
What it does
Every way of completing opens it: Mark as completed, Move to / Add to list as Completed (Library, Search, Discover, Browse), and the details page's status dropdown and +1.
The sheet: one row per related title (same media type, 18+ filtered), each showing its relation, format and year, and where it will go ("→ Watching", "Completed → Rewatching"). Every row starts unticked. The main button says what it will do ("Add 1 · Move 2"), and reads "Select titles" and is disabled while nothing is ticked. Not now is an outlined secondary button.
Where titles go follows a new Settings list, Watching (default) or Plan to Watch:
On your list as…
Released, Watching set
Released, Planning set
Unreleased
Not on list
Add → Watching
Add → Planning
Add → Planning
Planning
Move → Watching
not offered
not offered
Watching / Rewatching
not offered
not offered
not offered
Paused / Dropped
Move → Watching
Move → Planning
Move → Planning
Completed
Move → Rewatching
Move → Planning (progress → 0)
Move → Planning (progress → 0)
Cancelled titles are never offered. The whole matrix is pinned in UpNextTests.Candidates_FollowTheMatrix.
Toasts: the save's toast is never shown while the sheet is open (an Android toast draws over every window and sat on its buttons). It shows at once when there is nothing to offer, and after the sheet closes on Not now; when titles are picked, their own toast replaces it.
Settings: a new Up Next section with a toggle (on by default) and Suggestions Go To. Both are device-local, saved on tap and logged.
Notable decisions
One new AniList read per completion (MediaRelations, never cached). It starts behind the rating prompt, so it is usually done by the time the sheet is due. It returns the viewer's whole entry for each related title, so a move saves that entry back with its score, notes, private flag and rewatch count intact rather than overwriting it.
Each candidate's destination is fixed once, when it is chosen, so a row's label, its save and its toast cannot disagree (an earlier toast said "moved to Watching" for a rewatch).
Rewatch count fix: entering Rewatching no longer adds 1 to repeat. AniList counts the rewatch itself when the entry is completed again, so every rewatch was counted twice (confirmed on the test account). ListEntryStatusMutationsTests updated.
MediaRelations fixtures are recorded for the CI replay. AGENTS.md now names the AniList test account and allows writes to it.
Verification
2,005 unit tests pass, and the test project, the Android app and the -p:CiBuild=true variant all build with 0 warnings. New behaviour was written test-first, and the invariants were mutation-checked: the settings list ignored for adds and for moves, the same-list skip, the progress reset (both missing and over-applied), the toast after Not now (both missing and shown with picks), and the load guard on the settings log lines.
On device, Debug build signed in as the test account: every completion path; the Planning / Paused / Dropped / Completed moves under both settings; first watch and rewatch; manga wording; failed saves and lookups; the sheet's empty, ticked and Not now states; the toast timing; the Settings section; and the log lines. Not seen on device: the unreleased and cancelled rules (no such relations were at hand), which are covered by unit tests.
Search and Discover card pills stay stale after the sheet adds a title (already the case before this change).
BottomSheetChrome holds the edge-to-edge steps for this sheet; MoveToListPopup and ActionMenuPopup still carry their own copies, worth folding into it separately.
Completing an entry now opens an "Up Next" sheet listing its sequels, side
stories, spin-offs and alternatives of the same media type (18+ filtered).
Each row says where it will go, every row starts unticked, and the main
button says what it will do ("Add 1 · Move 2"), reading "Select titles" and
disabled while nothing is ticked. Not now is an outlined secondary button.
- Every way of completing triggers it: Mark as completed, Move to / Add to
list as Completed, and the details page's status dropdown and +1.
- One new AniList read per completion (MediaRelations, never cached). It
starts behind the rating prompt and returns the viewer's whole entry for
each related title, so a move saves the entry back with its score, notes
and rewatch count intact.
- Destinations follow a new Settings list, Watching (default) or Plan to
Watch: titles not on the list are added there; Planning, Paused and
Dropped ones move there; Completed ones go to Rewatching, or to Plan to
Watch with progress reset to 0. Unreleased titles only ever go to Plan to
Watch, cancelled ones are never offered, and anything already in progress
or already in its target list is left alone. The full matrix is pinned in
UpNextTests.Candidates_FollowTheMatrix.
- The save's toast is never shown under the sheet (an Android toast draws
over every window): it shows at once when nothing is offered, after the
sheet closes on Not now, and is replaced by the picks' own toast.
- Settings get an "Up Next" section: a toggle (on by default) and
"Suggestions Go To". Both are device-local, saved on tap and logged.
- Entering Rewatching no longer adds 1 to the rewatch count: AniList counts
the rewatch itself when the entry is completed again, so every rewatch was
counted twice (confirmed on the test account).
- MediaRelations fixtures recorded for CI replay; AGENTS.md names the
AniList test account and allows writes to it.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Active moderate issues remain in both retry paths: a successful retry can save the completed entry without showing Up Next or applying the deferred saved-toast notification flow.
Adds an end-to-end Up Next workflow after completing anime and manga entries, allowing users to select eligible related titles for addition or movement on AniList.
✅ Authenticated UI — stubbed auth plus real AniList responses recorded against a test account and replayed at the HTTP layer (#134). No OAuth token required.
Review on #224: a completion whose save failed lost its offer, because the
offer ends with the flow that made it. A Retry that went through then
completed the title with no sheet (and, from the Library menu, no toast).
- EntryActionCoordinator: the completion Retry begins its own offer and
confirms through it, like the first attempt.
- Details page, +1: a completion save's Retry is a completion too
(RetryCompletionSaveAsync), with its own offer.
- Details page, status dropdown: whether the pick is a completion is
decided once and carried into the Retry. Re-deciding at retry time read
the already-Completed entry and offered nothing.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Two active issues remain: a partial viewer entry can expose nulls as complete data, and missing media totals can leave progress at the cap when moving an entry to Watching.
candidate.Existing comes from MediaRelations, where it has no Media (and that query does not select episodes/chapters/volumes). For a Planning/Paused/Dropped candidate whose target is Current, ApplyStatusChange therefore cannot see HasKnownProgressTotal and will not walk an at-cap entry back by one, unlike the normal Move-to-list path. The saved entry can remain at its total while Watching, leaving the +1/completion invariant broken. Populate the existing entry with the related media's totals (or otherwise apply the same cap correction) before calling the shared mutation.
…Entry (#103)
Review on #224:
- A related title moved to Watching at its total stayed there, leaving +1
dead: the relations entry had no media, so the shared step-back could not
see the total. MediaRelations now selects episodes, chapters and volumes,
and the offer gives the entry those totals before the status change.
- The details query maps its relations through the same mapper, but its
per-node mediaListEntry is four fields. ViewerEntry is now filled only by
the relations read, so no consumer can move a partial entry and save the
rest back as nulls.
MediaRelations fixtures re-recorded for the new query against the test
account, pinning the three titles the old set covered that the account's
current list no longer does. No other fixtures change.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The change spans AniList mutations, shared completion flows, settings persistence, and Android popup behavior, so popup lifecycle, accessibility, and runtime save/toast ordering still require human device verification.
…us pick (#103)
Review on #224:
- Completing a rewatch sent the old repeat count. AniList adds the rewatch
itself on that save, and the client retries saves as idempotent upserts,
so a retry after a lost response could set AniList's 4 back to 3. The
count is now nulled on Rewatching -> Completed, which leaves it out of
the mutation on every attempt. Checked on the test account: 9 -> 10.
- A score or progress edit still waiting on its debounce saved again in
the middle of a details-page status change, toasting over the Up Next
sheet. The status save is of the same entry, so it cancels the queued
save and carries the edit.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The optional relations lookup can block completion saves, while CI replay returns stale list entries that can reset progress or overwrite recent edits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #103.
Completing an entry now opens an Up Next sheet with its sequels, side stories, spin-offs and alternatives, so the next thing to watch or read is one tap away.
What it does
Every way of completing opens it: Mark as completed, Move to / Add to list as Completed (Library, Search, Discover, Browse), and the details page's status dropdown and +1.
The sheet: one row per related title (same media type, 18+ filtered), each showing its relation, format and year, and where it will go ("→ Watching", "Completed → Rewatching"). Every row starts unticked. The main button says what it will do ("Add 1 · Move 2"), and reads "Select titles" and is disabled while nothing is ticked. Not now is an outlined secondary button.
Where titles go follows a new Settings list, Watching (default) or Plan to Watch:
Cancelled titles are never offered. The whole matrix is pinned in
UpNextTests.Candidates_FollowTheMatrix.Toasts: the save's toast is never shown while the sheet is open (an Android toast draws over every window and sat on its buttons). It shows at once when there is nothing to offer, and after the sheet closes on Not now; when titles are picked, their own toast replaces it.
Settings: a new Up Next section with a toggle (on by default) and Suggestions Go To. Both are device-local, saved on tap and logged.
Notable decisions
MediaRelations, never cached). It starts behind the rating prompt, so it is usually done by the time the sheet is due. It returns the viewer's whole entry for each related title, so a move saves that entry back with its score, notes, private flag and rewatch count intact rather than overwriting it.repeat. AniList counts the rewatch itself when the entry is completed again, so every rewatch was counted twice (confirmed on the test account).ListEntryStatusMutationsTestsupdated.MediaRelationsfixtures are recorded for the CI replay. AGENTS.md now names the AniList test account and allows writes to it.Verification
-p:CiBuild=truevariant all build with 0 warnings. New behaviour was written test-first, and the invariants were mutation-checked: the settings list ignored for adds and for moves, the same-list skip, the progress reset (both missing and over-applied), the toast after Not now (both missing and shown with picks), and the load guard on the settings log lines.Follow-ups (not in this PR)
BottomSheetChromeholds the edge-to-edge steps for this sheet;MoveToListPopupandActionMenuPopupstill carry their own copies, worth folding into it separately.